package com.sscw.tcp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.guaike.core.mybatis.entity.BasePO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 游戏记录表
 * </p>
 *
 * @author system
 * @since 2024-11-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("g_record_game")
public class GRecordGamePO extends BasePO {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * app用户id
     */
    private Long userId;
    /**
     * 房间id
     */
    private Long roomId;
    /**
     * m_record_occupy表id，包机记录id
     */
    private Long recordOccupyId;
    /**
     * 房间名称
     */
    private String roomName;
    /**
     * 房间类型（字典码:50001）
     */
    private Integer roomType;
    /**
     * 倍数值
     */
    private Integer multipleValue;
    /**
     * 机位编号
     */
    private String positionNo;
    /**
     * 设备ID
     */
    private Long deviceId;
    /**
     * 消耗松果数量
     */
    private Long usePinecone;
    /**
     * 获得松子数量
     */
    private Long getPineNut;
    /**
     * 最后投币时间
     */
    private LocalDateTime finallyCoinTime;
    /**
     * 结束时间
     */
    private LocalDateTime endTime;
    /**
     * 逻辑删除（非0:已删除, 0:未删除）
     */
    @TableLogic(value = "0", delval = "now()")
    private Long deleted;



}
